{include file="index:header" /}
<div class="layui-container">
    <div class="install-box">
        <div class="install-box-header">
            <fieldset class="layui-elem-field layui-field-title">
                <legend>用户使用协议</legend>
            </fieldset>
        </div>
        <div class="install-box-body">
            <div class="agreement">
<p>
KiteCMS遵循Apache2开源协议发布，并提供免费使用。
</p>
<p>
版权所有Copyright © 2018 by (http://www.kitesky.com)
</p>
<p>
Apache Licence是著名的非盈利开源组织Apache采用的协议。
该协议和BSD类似，鼓励代码共享和尊重原作者的著作权，
允许代码修改，再作为开源或商业软件发布。需要满足
的条件：
</p>
<p> 
1． 需要给代码的用户一份Apache Licence ；
</p>
<p>
2． 如果你修改了代码，需要在被修改的文件中说明；
</p>
<p>
3． 在延伸的代码中（修改和有源代码衍生的代码中）需要
带有原来代码中的协议，商标，专利声明和其他原来作者规
定需要包含的说明；
</p>
<p>
4． 如果再发布的产品中包含一个Notice文件，则在Notice文
件中需要带有本协议内容。你可以在Notice中增加自己的
许可，但不可以表现为对Apache Licence构成更改。
</p>
<p>
具体的协议参考：http://www.apache.org/licenses/LICENSE-2.0
</p>
<p>
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
</p>
            </div>
        </div>
        <div class="install-box-footer">
            <div class="next pull-center">
                <form class="layui-form" action="">
                    <input type="checkbox" name="accept" title="同意" lay-skin="primary">
                    <button lay-submit lay-filter="step1" class="layui-btn">开始安装</button>
                </form>
             </div>
        </div>
    </div>
</div>
<script>
layui.use('form', function(){
  var form = layui.form;
  //监听提交
  form.on('submit(step1)', function(data){
    <!-- var data = JSON.stringify(data.field); -->
    if (data.field.accept == 'on') {
        window.location.href = "{:url('install/index/index', ['step' => 2])}"
    } else {
        layer.msg('请阅读开源协议并同意', {area: '300px'});
    }
    return false;
  });
});

function agreement(){
    var accept = $("[name='accept']").val();
    alert(JSON.stringify(data.field));
}
</script> 
{include file="index:footer" /}